﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZLCMS.Data.Model;
using Newtonsoft.Json;
using NHibernate;
using NHibernate.Criterion;
using ZLCMS.Business.Tree;

namespace ZLCMS.Web.SystemManage.Basics.Control.ddt
{
    public partial class TreeData_Example : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ////获取数据源
            //IList<Category> list = new AccessorFactory().GetCategoryAccessor().GetAll();

            ////转换成控件的数据格式
            //List<ZTreeDataType> ztreeList = new List<ZTreeDataType>();

            //foreach (Category item in list)
            //{
            //    ztreeList.Add(new ZTreeDataType() { Id = item.Id, ParentId = item.Parentid, Name = item.Name });
            //}

            //Response.Write(JsonConvert.SerializeObject(ztreeList));
            //Response.End();
        }
    }
}
